package cn.tedu.spring.example;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUser {
    public static void main(String[] args) {
        /*
        1.框架创建Java对象;
        2.获取Java对象;
        3.调用Java对象的方法测试
         */

        ApplicationContext context=new AnnotationConfigApplicationContext
                ("cn.tedu.spring.example");
           // context.getBean("xxx").var+回车
        User user=context.getBean(User.class);
        user.run();







    }
}
